package com.arch.dev.client.vo;

import com.google.gwt.view.client.ProvidesKey;

public class UserVO extends BaseVO {

	public UserVO() {

	}

	private String userName;

	private String passWord;

	private Boolean enabled;

	private AuthorityVO authorityVO;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public AuthorityVO getAuthorityVO() {
		return authorityVO;
	}

	public void setAuthorityVO(AuthorityVO authorityVO) {
		this.authorityVO = authorityVO;
	}
	

	/**
	 * 
	 * The key provider that provides the unique ID of a contact.
	 */

	public static final ProvidesKey<UserVO> KEY_PROVIDER = new ProvidesKey<UserVO>() {

		
		public Object getKey(UserVO item) {

			return item == null ? null : item.getUserName();

		}

	};
}
